<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('身份证重复验证')"/>
    <th:block th:include="include :: layout-latest-css"/>
    <th:block th:include="include :: ztree-css"/>
    <th:block th:include="include :: select2-css"/>
    <th:block th:include="include :: bootstrap-editable-css"/>
</head>
<body class="gray-bg">
<div class="ui-layout-center">
    <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="user-form">
                    <div class="select-list">
                        <ul>
                            <li>
                                工号：<input type="text" name="badge"/>
                            </li>
                            <li>
                                姓名：<input type="text" name="name"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i
                                        class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                        class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">

            </div>

            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
</div>

<th:block th:include="include :: footer"/>
<th:block th:include="include :: layout-latest-js"/>
<th:block th:include="include :: ztree-js"/>
<th:block th:include="include :: bootstrap-table-editable-js"/>


<script th:inline="javascript">
    var prefix = ctx + "salaryInfo/btSalaryInfo";

    $(function () {
        var panehHidden = false;
        if ($(this).width() < 800) {
            panehHidden = true;
        }
        $('body').layout({initClosed: panehHidden, west__size: 350});
        getData();
    });

    function getData() {
        var columns = [];
        var other;
        var badge = {field: 'badge', title: '工号'};
        var name = {field: 'name', title: '姓名'};
        var compName = {field: 'compName', title: '公司'};
        var depName = {field: 'depName', title: '部门名称'};
        var jobName = {field: 'jobName', title: '岗位'};
        var bcid = {field: 'bcid', title: '银行'};
        var type = {field: 'type', title: '银行类别'};
        var bccard = {field: 'bccard', title: '银行卡号'};
        var sf = {field: 'sf', title: '省'};
        var s = {field: 's', title: '市'};
        var ylh = {field: 'ylh', title: '银联号'};
        var yhmc = {field: 'yhmc', title: '银行名称'};
        columns.push(badge, name, compName, depName, jobName, bcid, type, bccard, sf, s, ylh, yhmc);
        var options = {
            code: "id",
            uniqueId: "id",
            url: prefix + "/bankNumValidationList",
            height: $(window).height() - 120,
            modalName: "身份证重复验证",
            columns: columns
        };
        $.table.init(options);
    }

</script>

</body>
</html>
